package com.mikey.service.impl;

import com.mikey.mapper.WishMapper;
import com.mikey.pojo.Wish;
import com.mikey.service.WishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :Mikey
 * @description :
 * @create :2022-12-05 12:13:00
 */
@Service
public class WishServiceImpl implements WishService {
    @Autowired
    private WishMapper wishMapper;
    @Override
    public int insertWish(Wish wish) {
       return wishMapper.insertWish(wish);
    }

    @Override
    public List<Wish> selectByName(String name) {
        return wishMapper.selectByName(name);
    }

    @Override
    public List<Wish> selectAll() {
        return wishMapper.selectAll();
    }
}
